//
//  SetAliControl.m
//  FreeTime
//
//  Created by 王江华 on 16/9/1.
//  Copyright © 2016年 SRDZ.com. All rights reserved.
//

#import "SetAliControl.h"
#import "AliPasswordCell.h"
#import "ModifyPayPasswordControl.h"
#import "ModifyPaySMSControl.h"

@interface SetAliControl ()






@end

@implementation SetAliControl

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationItem.title=@"设置支付密码";
    
    
    
    
    
    
}
#pragma mark tableViewMethord
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return 78;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 2;
}





- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
   
    AliPasswordCell *cell=[AliPasswordCell cellWithTableView:tableView];
    
    if (indexPath.row==0) {
        
        cell.propertyLabel.text=@"修改支付密码";
    }
    
    else{
    
    cell.propertyLabel.text=@"找回支付密码";
    
    }
    
    return cell;
    
}




- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    
    if (indexPath.row==0) {
        
        
        ModifyPayPasswordControl *PayPassword=[[ModifyPayPasswordControl alloc]
                                               init];
        
        
        [self.navigationController pushViewController:PayPassword animated:YES];
    }
   
    else{
    
    
        ModifyPaySMSControl *paySMS=[[ModifyPaySMSControl alloc]init];
        
        
        [self.navigationController pushViewController:paySMS animated:YES];
        
    
    }
    
    
    
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
